var tests = Object.keys(window.__karma__.files).filter(function (file) {
    return /spec\.js$/.test(file);
});

require.config({
    baseUrl: 'base/main/js',

    paths: {
        // the left side is the module ID,
        // the right side is the path to
        // the jQuery file, relative to baseUrl.
        // Also, the path should NOT include
        // the '.js' file extension. This example
        // is using jQuery 1.9.0 located at
        // js/lib/jquery-1.9.0.js, relative to
        // the HTML page.
        "jquery": 'libs/jquery-1.9.1',
        "jquery-ui": "libs/jquery-ui-1.10.3.custom"
    },

    shim: {
        "jquery-ui": {
            exports: "$",
            deps: ['jquery']
        }
    },

    // ask Require.js to load these files (all our tests)
    deps: tests,

    // start test run, once Require.js is done
    callback: window.__karma__.start
});

var FIXTURES_PATH = "base/test/resources"